import { BrowserModule } from '@angular/platform-browser';
import { NgModule } from '@angular/core';
import { HttpModule } from '@angular/http';
import { FormsModule } from '@angular/forms';
import { RouterModule } from '@angular/router';
import { AppRoutingModule } from './app-routing.module';
import { AppComponent } from './app.component';
import { WeUiModule } from 'ngx-weui';
import { ShudleService } from './service/shudleservice/shudle.service';
import { HttpService } from './service/http.service';
import { TimeService } from './service/timeservice/time.service';
import { BrowserAnimationsModule } from '@angular/platform-browser/animations';
import { HosplistService } from './service/hosplist.service';
import { OutpatientpayComponent } from './outpatientpay/outpatientpay.component';
import { PhomepageComponent } from './phomepage/phomepage.component';
import { DoctorhomeComponent } from './doctorhome/doctorhome.component';
import { HashLocationStrategy, LocationStrategy } from '@angular/common';

@NgModule({
  declarations: [
    AppComponent,
    OutpatientpayComponent,
    PhomepageComponent,
    DoctorhomeComponent
  ],
  imports: [
    HttpModule,
    BrowserModule,
    AppRoutingModule,
    HttpModule,
    WeUiModule.forRoot(),
    BrowserAnimationsModule,
    FormsModule
  ],
  providers: [HosplistService, HttpService, ShudleService, TimeService, { provide: LocationStrategy, useClass: HashLocationStrategy }],
  bootstrap: [AppComponent]
})
export class AppModule { }
